const mongoose = require('mongoose')

const schema = new mongoose.Schema({
  name: {
    type: String,
    required: true,
  },
  price: Number,
  is_raw: Boolean,
})

const mongooseModule = mongoose.model('books', schema)

module.exports = mongooseModule